package com.dynamic.mybatis.core.enums;

/**
 * @Description
 * @Author xs
 * @Date 2023/6/1 17:27
 */
public interface RequestMethod {

    static RequestMethod getRequestMethod(String method) {
        return StandardRequestMethod.valueOf(method);
    }

    ;

    String method();

    enum StandardRequestMethod implements RequestMethod {
        GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE;

        @Override
        public String method() {
            return this.name();
        }
    }

}